package com.homework.test2;

import java.util.Random;

public class Demo7 {
    public static void main(String[] args) {
        Random random = new Random();
        int[] arr = new int[10];
        for (int i = 0; i < arr.length; i++) {
            arr[i] = random.nextInt(100 - 10 + 1) + 10;
        }
        int min = arr[0];
        for (int i : arr) {
            if (min>i){
                min = i;
            }
            System.out.print(i+" ");
        }
        System.out.println();
        System.out.println("min = " + min);

    }
}
